package com.zhouchj.elasticsearch.model.page;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

public final class PageForm implements Serializable {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 3999418461434109307L;
	
	/**
	 * 每页显示条数，默认 10
	 */
	@JsonProperty(value = "pageSize")
	private Long size = 10L;

	/**
	 * 当前页
	 */
	@JsonProperty(value = "pageIndex")
	private Long current = 1L;

	public Long getSize() {
		return size;
	}

	public void setSize(Long size) {
		this.size = size;
	}

	public Long getCurrent() {
		return current;
	}

	public void setCurrent(Long current) {
		this.current = current;
	}

	@Override
	public String toString() {
		return "PageVo{" +
				"size=" + size +
				", current=" + current +
				'}';
	}
}